package com.tdd.api.server;

/**
 * @author TDD
 * @version V1.0.0
 * @description: ${Description}
 * @date 2020/4/23 14:55
 * @copyright Copyright © 2019 
 */

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @ClassName FrameworkDemo
 * @Description TODO
 * @Author TDD
 * @Date 2020/4/23 14:55
 * Version 1.0
 */
//@EnableEurekaClient
//@EnableAsync
@SpringBootApplication
@MapperScan("com.tdd.api.server.dao")
@EnableScheduling
@EnableSwagger2
@EnableCaching
public class ApiServerApplication {
    /**
     *
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(ApiServerApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
